#include<stdio.h>
#include<math.h>
void ncimi(double base,double power)
{
	if(base==0&&power!=0)
	{
		printf("0的任何次幂(除了0)都为0\n");
		return;
	}
	if(base==0&&power==0)
	{
		printf("0的0次幂无意义\n");
		return;
	}
	int cnt=1;
	double s;
	for(;cnt<=5;cnt++)
	{
		s=pow(base,power);
		printf("%lf^%lf is %.3lf\n",base,power,s);
		power++;
	}
}
int main()
{
	double base,power;
	printf("please input the base:\n");
	scanf("%lf",&base);
	printf("please input the power:\n");
	scanf("%lf",&power);
	ncimi(base,power);


	return 0;
}
